<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------
namespace Admin\Controller;

/**
 * 模型数据管理控制器
 * @author 麦当苗儿 <zuojiazi@vip.qq.com>
 */
class XuebingController extends ThinkController {

    public function lists($model=null,$p=0,$map=[]){

        parent::lists($model,$p,[]);
    }

    public function add($model = null,$jumpurl=''){

        $_POST['insert_time'] = time_format();
        parent::add($model);
    }

    public function edit($model = null, $id = 0, $jumpurl=''){

        $_POST['update_time'] = time_format();
        parent::edit($model,$id);
    }
}